package com.sikaryofficial.backend.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author : qinjinyuan
 * @desc : 邮箱设置入参
 * @date : 2023/11/18 13:02
 */
@Setter
@Getter
@ToString
@ApiModel(value = "邮箱设置入参", description = "邮箱设置入参")
public class UserSettingEmailReq {
    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank(message = "emailAddress is empty")
    @Email(regexp = "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Z|a-z]{2,}$", message = "emailAddress is not valid")
    private String emailAddress;
    /**
     * 验证码
     */
    @ApiModelProperty(value = "邮箱验证码", required = true)
    @NotBlank(message = "captchaCode is empty")
    private String captchaCode;
}
